package ch03.Jianda.factory;

public class ActionFactory {
    public static <T> T getInstance(String keyValue) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class clz = Class.forName(keyValue);
        Object result = clz.newInstance();
        return (T)result;
    }
}
